/*
 * 
 * DILARANG MENGHAPUS ATAU MENGEDIT COPYRIGHT INI.
 * 
 * Copyright 2008 echo.khannedy@gmail.com. 
 * All rights reserved.
 * 
 * Semua isi dalam file ini adalah hak milik dari echo.khannedy@gmail.com
 * Anda tak diperkenankan untuk menggunakan file atau mengubah file
 * ini kecuali anda tidak menghapus atau merubah lisence ini.
 * 
 * File ini dibuat menggunakan :
 * IDE        : NetBeans
 * NoteBook   : Acer Aspire 5920G
 * OS         : Windows Vista
 * Java       : Java 1.6
 * 
 */
package edu.unindra.company.model;

/**
 * 
 * @author usu
 */
public class DefaultEmployee implements Employee {

	private static final long serialVersionUID = -1;
	private String id, name, address, contact, tmptLahir, tglLahir, pendidikan,
			jabatan, photo;

	/**
     * 
     */
	public DefaultEmployee() {
		this(null, null, null, null, null, null, null, null, null);
	}

	/**
	 * 
	 * @param id
	 * @param name
	 * @param address
	 * @param contact
	 * @param born
	 * @param tmptLahir
	 */
	public DefaultEmployee(String id, String tmptLahir, String name,
			String address, String contact, String tglLahir, String pendidikan,
			String jabatan, String photo) {
		this.id = id;
		this.name = name;
		this.address = address;
		this.contact = contact;
		this.tmptLahir = tmptLahir;
		this.tglLahir = tglLahir;
		this.pendidikan = pendidikan;
		this.jabatan = jabatan;
		this.photo = photo;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTmptLahir() {
		return tmptLahir;
	}

	public void setTmptLahir(String tmptLahir) {
		this.tmptLahir = tmptLahir;
	}

	public String getTglLahir() {
		return tglLahir;
	}

	@Override
	public void setTglLahir(String tglLahir) {
		this.tglLahir = tglLahir;
	}

	@Override
	public String getPendidikan() {
		return pendidikan;
	}

	@Override
	public void setPendidikan(String pendidikan) {
		this.pendidikan = pendidikan;
	}

	@Override
	public String getJabatan() {
		return jabatan;
	}

	@Override
	public void setJabatan(String jabatan) {
		this.jabatan = jabatan;
	}

	@Override
	public String getPhoto() {
		return photo;
	}

	@Override
	public void setPhoto(String photo) {
		this.photo = photo;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		final DefaultEmployee other = (DefaultEmployee) obj;
		if (this.id != other.id
				&& (this.id == null || !this.id.equals(other.id))) {
			return false;
		}
		if (this.name != other.name
				&& (this.name == null || !this.name.equals(other.name))) {
			return false;
		}
		if (this.address != other.address
				&& (this.address == null || !this.address.equals(other.address))) {
			return false;
		}
		if (this.contact != other.contact
				&& (this.contact == null || !this.contact.equals(other.contact))) {
			return false;
		}
		if (this.tmptLahir != other.tmptLahir
				&& (this.tmptLahir == null || !this.tmptLahir
						.equals(other.tmptLahir))) {
			return false;
		}
		if (this.tglLahir != other.tglLahir
				&& (this.tglLahir == null || !this.tglLahir
						.equals(other.tglLahir))) {
			return false;
		}
		if (this.pendidikan != other.pendidikan
				&& (this.pendidikan == null || !this.pendidikan
						.equals(other.pendidikan))) {
			return false;
		}
		if (this.jabatan != other.jabatan
				&& (this.jabatan == null || !this.jabatan.equals(other.jabatan))) {
			return false;
		}
		if (this.photo != other.photo
				&& (this.photo == null || !this.photo.equals(other.photo))) {
			return false;
		}
		return true;
	}

	@Override
	public int hashCode() {
		int hash = 3;
		hash = 47 * hash + (this.id != null ? this.id.hashCode() : 0);
		hash = 47 * hash + (this.name != null ? this.name.hashCode() : 0);
		hash = 47 * hash + (this.address != null ? this.address.hashCode() : 0);
		hash = 47 * hash + (this.contact != null ? this.contact.hashCode() : 0);
		hash = 47 * hash
				+ (this.tmptLahir != null ? this.tmptLahir.hashCode() : 0);
		hash = 47 * hash
				+ (this.tglLahir != null ? this.tglLahir.hashCode() : 0);
		hash = 47 * hash
				+ (this.pendidikan != null ? this.pendidikan.hashCode() : 0);
		hash = 47 * hash + (this.jabatan != null ? this.jabatan.hashCode() : 0);
		hash = 47 * hash + (this.photo != null ? this.photo.hashCode() : 0);
		return hash;
	}

}
